//
//  ViewController.swift
//  Demo
//
//  Created by xiu on 2020/4/20.
//  Copyright © 2020 111. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        JXNetwork.appPackage = "com.hgs.potato"
        JXNetwork.appId = "7272891"
        JXNetwork.apiKey = "52_kevin_babay_forever"
        JXNetwork.appVer = "1.0"
        JXNetwork.udid = "34042581-5D67-433D-9692-EE886AD95358"
        JXNetwork.deviceParams = ["isJailBreak1":false,
            "isJailBreak2":false,
            "countryCode":"",
            "devicePlatformSystem":"Simulator",
            "deviceSystemVersion":"13.3",
            "iPhoneLanguage":"en",
            "iPhoneName":"iPhone 11 Pro Max",
            "idfa":"",
            "imsi":"",
            "isSimulator":false,
            "networkCode":""]
        JXRequest.custom(path: "", param: ["params":["phone":"18614098979","pass":"123456"],
                                           "class":"bottle","method":"Login","msgid":102], isEncrypt: .aes).response { (res) in
            if res.isSuccess {
                if let datas = res.resolvePotatoDicValue() {
                    print(datas)
                }
            } else {
                print(res)
            }
        }
        
    }

}

